package com.dragon.modules.yuegou.query.merchant;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.dragon.modules.yuegou.entity.merchant.MerchantActivityCaseEntity;
import com.dragon.modules.yuegou.mybatis.Condition;
import com.dragon.modules.yuegou.mybatis.Query;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonUnwrapped;

import java.time.LocalDateTime;

/**
 * 优秀案例 动态查询条件
 * 
 * @author pbuilder generated
 * @date 2019-09-23 18:11:02
 * @version 2.0
 */
@JsonInclude(Include.NON_NULL)
public class MerchantActivityCaseQuery extends MerchantActivityCaseEntity implements Query<MerchantActivityCaseEntity> {


    /** 查询条件 */
	@JsonUnwrapped(prefix = "id")
	private Condition<String> idCondition;

    /** 商圈Id查询条件 */
	@JsonUnwrapped(prefix = "busdId")
	private Condition<String> busdIdCondition;

    /** 案例名称查询条件 */
	@JsonUnwrapped(prefix = "caseName")
	private Condition<String> caseNameCondition;

    /** 展示图片查询条件 */
	@JsonUnwrapped(prefix = "showImage")
	private Condition<String> showImageCondition;

    /** 详情图片查询条件 */
	@JsonUnwrapped(prefix = "describeImage")
	private Condition<String> describeImageCondition;

    /** 浏览量查询条件 */
	@JsonUnwrapped(prefix = "views")
	private Condition<Integer> viewsCondition;

    /** 分享次数查询条件 */
	@JsonUnwrapped(prefix = "shares")
	private Condition<Integer> sharesCondition;

    /** 排序查询条件 */
	@JsonUnwrapped(prefix = "sortNo")
	private Condition<Integer> sortNoCondition;

    /** 创建人ID查询条件 */
	@JsonUnwrapped(prefix = "createdBy")
	private Condition<String> createdByCondition;

    /** 创建时间查询条件 */
	@JsonUnwrapped(prefix = "createdTime")
	private Condition<LocalDateTime> createdTimeCondition;

    /** 更新人ID查询条件 */
	@JsonUnwrapped(prefix = "modifiedBy")
	private Condition<String> modifiedByCondition;

    /** 更新时间查询条件 */
	@JsonUnwrapped(prefix = "modifiedTime")
	private Condition<LocalDateTime> modifiedTimeCondition;

    /** 逻辑删除：1表示已删除,0表示未删除查询条件 */
	@JsonUnwrapped(prefix = "del")
	private Condition<Boolean> delCondition;

    /** 删除人查询条件 */
	@JsonUnwrapped(prefix = "delBy")
	private Condition<String> delByCondition;

    /** 删除时间查询条件 */
	@JsonUnwrapped(prefix = "delTime")
	private Condition<LocalDateTime> delTimeCondition;

	/**
	 * 构造一个查询条件对象
	 */
	public MerchantActivityCaseQuery() {
		super();
	}

	/**
	 * 依据实体对象构造一个查询条件对象
	 * 
	 * @param entity 实体对象
	 */
	public MerchantActivityCaseQuery(MerchantActivityCaseEntity entity) {
		super(entity);
	}

	/**
	 * 依据其它查询条件对象的信息构造一个查询条件对象
	 * 
	 * @param other 查询条件对象
	 */
	public MerchantActivityCaseQuery(MerchantActivityCaseQuery other) {
		super(other);
		if(other.idCondition != null) {
			this.idCondition = other.idCondition.copy();
		}
		if(other.busdIdCondition != null) {
			this.busdIdCondition = other.busdIdCondition.copy();
		}
		if(other.caseNameCondition != null) {
			this.caseNameCondition = other.caseNameCondition.copy();
		}
		if(other.showImageCondition != null) {
			this.showImageCondition = other.showImageCondition.copy();
		}
		if(other.describeImageCondition != null) {
			this.describeImageCondition = other.describeImageCondition.copy();
		}
		if(other.viewsCondition != null) {
			this.viewsCondition = other.viewsCondition.copy();
		}
		if(other.sharesCondition != null) {
			this.sharesCondition = other.sharesCondition.copy();
		}
		if(other.sortNoCondition != null) {
			this.sortNoCondition = other.sortNoCondition.copy();
		}
		if(other.createdByCondition != null) {
			this.createdByCondition = other.createdByCondition.copy();
		}
		if(other.createdTimeCondition != null) {
			this.createdTimeCondition = other.createdTimeCondition.copy();
		}
		if(other.modifiedByCondition != null) {
			this.modifiedByCondition = other.modifiedByCondition.copy();
		}
		if(other.modifiedTimeCondition != null) {
			this.modifiedTimeCondition = other.modifiedTimeCondition.copy();
		}
		if(other.delCondition != null) {
			this.delCondition = other.delCondition.copy();
		}
		if(other.delByCondition != null) {
			this.delByCondition = other.delByCondition.copy();
		}
		if(other.delTimeCondition != null) {
			this.delTimeCondition = other.delTimeCondition.copy();
		}
	}

	@Override
	public QueryWrapper<MerchantActivityCaseEntity> toQueryWrapper() {
		QueryWrapper<MerchantActivityCaseEntity> wrapper = new QueryWrapper<>(this);
		if (idCondition != null) {
			idCondition.toWrapper(wrapper, COL_ID);
		}
		if (busdIdCondition != null) {
			busdIdCondition.toWrapper(wrapper, COL_BUSD_ID);
		}
		if (caseNameCondition != null) {
			caseNameCondition.toWrapper(wrapper, COL_CASE_NAME);
		}
		if (showImageCondition != null) {
			showImageCondition.toWrapper(wrapper, COL_SHOW_IMAGE);
		}
		if (describeImageCondition != null) {
			describeImageCondition.toWrapper(wrapper, COL_DESCRIBE_IMAGE);
		}
		if (viewsCondition != null) {
			viewsCondition.toWrapper(wrapper, COL_VIEWS);
		}
		if (sharesCondition != null) {
			sharesCondition.toWrapper(wrapper, COL_SHARES);
		}
		if (sortNoCondition != null) {
			sortNoCondition.toWrapper(wrapper, COL_SORT_NO);
		}
		if (createdByCondition != null) {
			createdByCondition.toWrapper(wrapper, COL_CREATED_BY);
		}
		if (createdTimeCondition != null) {
			createdTimeCondition.toWrapper(wrapper, COL_CREATED_TIME);
		}
		if (modifiedByCondition != null) {
			modifiedByCondition.toWrapper(wrapper, COL_MODIFIED_BY);
		}
		if (modifiedTimeCondition != null) {
			modifiedTimeCondition.toWrapper(wrapper, COL_MODIFIED_TIME);
		}
		if (delCondition != null) {
			delCondition.toWrapper(wrapper, COL_DEL);
		}
		if (delByCondition != null) {
			delByCondition.toWrapper(wrapper, COL_DEL_BY);
		}
		if (delTimeCondition != null) {
			delTimeCondition.toWrapper(wrapper, COL_DEL_TIME);
		}
		return wrapper;
	}

	/**
	 * 构造并返回查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> id() {
		this.idCondition = new Condition<>();
		return this.idCondition;
	}
	
	/**
	 * 获取查询条件
	 * 
	 * @return idCondition 查询条件
	 */
	public Condition<String> getIdCondition() {
		return idCondition;
	}

	/**
	 * 设置查询条件
	 * 
	 * @param idCondition 查询条件
	 */
	public void setIdCondition(Condition<String> idCondition) {
		this.idCondition = idCondition;
	}

	/**
	 * 构造并返回商圈Id查询条件
	 * 
	 * @return busdIdCondition 商圈Id查询条件
	 */
	public Condition<String> busdId() {
		this.busdIdCondition = new Condition<>();
		return this.busdIdCondition;
	}
	
	/**
	 * 获取商圈Id查询条件
	 * 
	 * @return busdIdCondition 商圈Id查询条件
	 */
	public Condition<String> getBusdIdCondition() {
		return busdIdCondition;
	}

	/**
	 * 设置商圈Id查询条件
	 * 
	 * @param busdIdCondition 商圈Id查询条件
	 */
	public void setBusdIdCondition(Condition<String> busdIdCondition) {
		this.busdIdCondition = busdIdCondition;
	}

	/**
	 * 构造并返回案例名称查询条件
	 * 
	 * @return caseNameCondition 案例名称查询条件
	 */
	public Condition<String> caseName() {
		this.caseNameCondition = new Condition<>();
		return this.caseNameCondition;
	}
	
	/**
	 * 获取案例名称查询条件
	 * 
	 * @return caseNameCondition 案例名称查询条件
	 */
	public Condition<String> getCaseNameCondition() {
		return caseNameCondition;
	}

	/**
	 * 设置案例名称查询条件
	 * 
	 * @param caseNameCondition 案例名称查询条件
	 */
	public void setCaseNameCondition(Condition<String> caseNameCondition) {
		this.caseNameCondition = caseNameCondition;
	}

	/**
	 * 构造并返回展示图片查询条件
	 * 
	 * @return showImageCondition 展示图片查询条件
	 */
	public Condition<String> showImage() {
		this.showImageCondition = new Condition<>();
		return this.showImageCondition;
	}
	
	/**
	 * 获取展示图片查询条件
	 * 
	 * @return showImageCondition 展示图片查询条件
	 */
	public Condition<String> getShowImageCondition() {
		return showImageCondition;
	}

	/**
	 * 设置展示图片查询条件
	 * 
	 * @param showImageCondition 展示图片查询条件
	 */
	public void setShowImageCondition(Condition<String> showImageCondition) {
		this.showImageCondition = showImageCondition;
	}

	/**
	 * 构造并返回详情图片查询条件
	 * 
	 * @return describeImageCondition 详情图片查询条件
	 */
	public Condition<String> describeImage() {
		this.describeImageCondition = new Condition<>();
		return this.describeImageCondition;
	}
	
	/**
	 * 获取详情图片查询条件
	 * 
	 * @return describeImageCondition 详情图片查询条件
	 */
	public Condition<String> getDescribeImageCondition() {
		return describeImageCondition;
	}

	/**
	 * 设置详情图片查询条件
	 * 
	 * @param describeImageCondition 详情图片查询条件
	 */
	public void setDescribeImageCondition(Condition<String> describeImageCondition) {
		this.describeImageCondition = describeImageCondition;
	}

	/**
	 * 构造并返回浏览量查询条件
	 * 
	 * @return viewsCondition 浏览量查询条件
	 */
	public Condition<Integer> views() {
		this.viewsCondition = new Condition<>();
		return this.viewsCondition;
	}
	
	/**
	 * 获取浏览量查询条件
	 * 
	 * @return viewsCondition 浏览量查询条件
	 */
	public Condition<Integer> getViewsCondition() {
		return viewsCondition;
	}

	/**
	 * 设置浏览量查询条件
	 * 
	 * @param viewsCondition 浏览量查询条件
	 */
	public void setViewsCondition(Condition<Integer> viewsCondition) {
		this.viewsCondition = viewsCondition;
	}

	/**
	 * 构造并返回分享次数查询条件
	 * 
	 * @return sharesCondition 分享次数查询条件
	 */
	public Condition<Integer> shares() {
		this.sharesCondition = new Condition<>();
		return this.sharesCondition;
	}
	
	/**
	 * 获取分享次数查询条件
	 * 
	 * @return sharesCondition 分享次数查询条件
	 */
	public Condition<Integer> getSharesCondition() {
		return sharesCondition;
	}

	/**
	 * 设置分享次数查询条件
	 * 
	 * @param sharesCondition 分享次数查询条件
	 */
	public void setSharesCondition(Condition<Integer> sharesCondition) {
		this.sharesCondition = sharesCondition;
	}

	/**
	 * 构造并返回排序查询条件
	 * 
	 * @return sortNoCondition 排序查询条件
	 */
	public Condition<Integer> sortNo() {
		this.sortNoCondition = new Condition<>();
		return this.sortNoCondition;
	}
	
	/**
	 * 获取排序查询条件
	 * 
	 * @return sortNoCondition 排序查询条件
	 */
	public Condition<Integer> getSortNoCondition() {
		return sortNoCondition;
	}

	/**
	 * 设置排序查询条件
	 * 
	 * @param sortNoCondition 排序查询条件
	 */
	public void setSortNoCondition(Condition<Integer> sortNoCondition) {
		this.sortNoCondition = sortNoCondition;
	}

	/**
	 * 构造并返回创建人ID查询条件
	 * 
	 * @return createdByCondition 创建人ID查询条件
	 */
	public Condition<String> createdBy() {
		this.createdByCondition = new Condition<>();
		return this.createdByCondition;
	}
	
	/**
	 * 获取创建人ID查询条件
	 * 
	 * @return createdByCondition 创建人ID查询条件
	 */
	public Condition<String> getCreatedByCondition() {
		return createdByCondition;
	}

	/**
	 * 设置创建人ID查询条件
	 * 
	 * @param createdByCondition 创建人ID查询条件
	 */
	public void setCreatedByCondition(Condition<String> createdByCondition) {
		this.createdByCondition = createdByCondition;
	}

	/**
	 * 构造并返回创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> createdTime() {
		this.createdTimeCondition = new Condition<>();
		return this.createdTimeCondition;
	}
	
	/**
	 * 获取创建时间查询条件
	 * 
	 * @return createdTimeCondition 创建时间查询条件
	 */
	public Condition<LocalDateTime> getCreatedTimeCondition() {
		return createdTimeCondition;
	}

	/**
	 * 设置创建时间查询条件
	 * 
	 * @param createdTimeCondition 创建时间查询条件
	 */
	public void setCreatedTimeCondition(Condition<LocalDateTime> createdTimeCondition) {
		this.createdTimeCondition = createdTimeCondition;
	}

	/**
	 * 构造并返回更新人ID查询条件
	 * 
	 * @return modifiedByCondition 更新人ID查询条件
	 */
	public Condition<String> modifiedBy() {
		this.modifiedByCondition = new Condition<>();
		return this.modifiedByCondition;
	}
	
	/**
	 * 获取更新人ID查询条件
	 * 
	 * @return modifiedByCondition 更新人ID查询条件
	 */
	public Condition<String> getModifiedByCondition() {
		return modifiedByCondition;
	}

	/**
	 * 设置更新人ID查询条件
	 * 
	 * @param modifiedByCondition 更新人ID查询条件
	 */
	public void setModifiedByCondition(Condition<String> modifiedByCondition) {
		this.modifiedByCondition = modifiedByCondition;
	}

	/**
	 * 构造并返回更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> modifiedTime() {
		this.modifiedTimeCondition = new Condition<>();
		return this.modifiedTimeCondition;
	}
	
	/**
	 * 获取更新时间查询条件
	 * 
	 * @return modifiedTimeCondition 更新时间查询条件
	 */
	public Condition<LocalDateTime> getModifiedTimeCondition() {
		return modifiedTimeCondition;
	}

	/**
	 * 设置更新时间查询条件
	 * 
	 * @param modifiedTimeCondition 更新时间查询条件
	 */
	public void setModifiedTimeCondition(Condition<LocalDateTime> modifiedTimeCondition) {
		this.modifiedTimeCondition = modifiedTimeCondition;
	}

	/**
	 * 构造并返回逻辑删除：1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除：1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> del() {
		this.delCondition = new Condition<>();
		return this.delCondition;
	}
	
	/**
	 * 获取逻辑删除：1表示已删除,0表示未删除查询条件
	 * 
	 * @return delCondition 逻辑删除：1表示已删除,0表示未删除查询条件
	 */
	public Condition<Boolean> getDelCondition() {
		return delCondition;
	}

	/**
	 * 设置逻辑删除：1表示已删除,0表示未删除查询条件
	 * 
	 * @param delCondition 逻辑删除：1表示已删除,0表示未删除查询条件
	 */
	public void setDelCondition(Condition<Boolean> delCondition) {
		this.delCondition = delCondition;
	}

	/**
	 * 构造并返回删除人查询条件
	 * 
	 * @return delByCondition 删除人查询条件
	 */
	public Condition<String> delBy() {
		this.delByCondition = new Condition<>();
		return this.delByCondition;
	}
	
	/**
	 * 获取删除人查询条件
	 * 
	 * @return delByCondition 删除人查询条件
	 */
	public Condition<String> getDelByCondition() {
		return delByCondition;
	}

	/**
	 * 设置删除人查询条件
	 * 
	 * @param delByCondition 删除人查询条件
	 */
	public void setDelByCondition(Condition<String> delByCondition) {
		this.delByCondition = delByCondition;
	}

	/**
	 * 构造并返回删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> delTime() {
		this.delTimeCondition = new Condition<>();
		return this.delTimeCondition;
	}
	
	/**
	 * 获取删除时间查询条件
	 * 
	 * @return delTimeCondition 删除时间查询条件
	 */
	public Condition<LocalDateTime> getDelTimeCondition() {
		return delTimeCondition;
	}

	/**
	 * 设置删除时间查询条件
	 * 
	 * @param delTimeCondition 删除时间查询条件
	 */
	public void setDelTimeCondition(Condition<LocalDateTime> delTimeCondition) {
		this.delTimeCondition = delTimeCondition;
	}

}
